<?php
header('content-type:text/html;charset=utf-8'); 
	echo "Start".date("Y-m-j H:i:s",time()). "<br>";
$Chip_item=$_GET["Chip_item"];
	echo "Get".date("Y-m-j H:i:s",time()). "<br>";
	//echo $Chip_item. "<br>";
$conn=mysql_connect("127.0.0.1:3306","root","tdled2018");
if (!$conn){
	die('Could not connect: ' . mysql_error());
}
	echo "conn".date("Y-m-j H:i:s",time()). "<br>";
mysql_select_db("chipdb", $conn);

mysql_query("set character set 'utf8'");//读库 

mysql_query("set names 'utf8'");//写库 

//mysql_query("INSERT INTO Persons (FirstName, LastName, Age) VALUES ('Peter', 'Griffin', '35')");

//`chipsm`(`日期时间`, `工单号`, `成品料号`, `芯片料号`, `芯片规格`, `芯片电压`, `芯片亮度`, `芯片波长`, `扫描品号`, `扫描批号`, `扫描规格`, `扫描电压小`, `扫描电压大`, `扫描亮度小`, `扫描亮度大`, `扫描波长小`, `扫描波长大`, `数量`, `二维码内容`)

 
//$SQL="INSERT INTO `chipsm`(`DTT`, `WO`, `CPPN`, `ChPN`, `ChSM`, `ChVf`, `ChPO`, `ChWD`, `ChQTY`, `SMChSM`, `SMWO`, `SMSM`, `SMVfS`, `SMVfL`, `SMPOS`, `SMPOL`, `SMWDS`, `SMWDL`, `QTY`, `QRC`, `FK`) VALUES ('".date("Y-m-d H:i:s")."', ".$Chip_item.")";
$SQL = "INSERT INTO `chipruku`( `DTT`, `ChLiaoHao`,`ChGuiGe`, `ChChiCun`,`ChVf`, `ChPO`, `ChWD`, `SMPinHao`, `SMPiHao`, `SMGuiGe`, `SMVfMin`, `SMVfMax`, `SMPOMin`, `SMPOMax`, `SMWDMin`, `SMWDMax`, `QTY`, `QRC`, `FK`, `PO`, `VfAv`, `POAv`, `WDAv`) VALUES ('".date("Y-m-d H:i:s")."', ".$Chip_item.")";
echo $SQL. "<br>";
mysql_query($SQL);
	echo "Query".date("Y-m-j H:i:s",time()). "<br>";
mysql_close($conn);
	echo "Endph".date("Y-m-j H:i:s",time()). "<br>";
?>